home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / hardware / cpu115 / makec.bat < prev    next >
Encoding:
DOS Batch File  |  1995-02-27  |  2.2 KB  |  82 lines

  1. @echo off
  2. echo makeC - CPU Identifier/C Builder  Version 1.04 (c) 1994,95 by B-coolWare.
  3. if "%1" == "S" goto Small
  4. if "%1" == "m" goto Med
  5. if "%1" == "M" goto Med
  6. if "%1" == "c" goto Comp
  7. if "%1" == "C" goto Comp
  8. if "%1" == "l" goto Large
  9. if "%1" == "L" goto Large
  10. if "%1" == "h" goto Huge
  11. if "%1" == "H" goto Huge
  12. goto Help
  13. :Small
  14. set model=__SMALL__
  15. goto okModel
  16. :Med
  17. set model=__MEDIUM__
  18. goto okModel
  19. :Comp
  20. set model=__COMPACT__
  21. goto okModel
  22. :Large
  23. set model=__LARGE__
  24. goto okModel
  25. :Huge
  26. set model=__HUGE__
  27. :okModel
  28. echo:
  29. yesno Do you want to compile CPU Identifier
  30. if errorlevel 1 goto compile
  31. yesno Do you want to make TMi0SDGL library
  32. if errorlevel 1 goto mklib
  33. goto P5Info
  34. :mklib
  35. call mlib cputype %1
  36. goto P5Info
  37. :compile
  38. echo Building CPU Identifier/C...
  39. set makeC=ON
  40. call mlib cputype %1
  41. bcc -m%1 -c -Ii:\borlandc\include cpu.c
  42. REM tcc -m%1 -c -Id:\turboc\include cpu
  43. rem                          ^-- unREM this if you're TC user
  44. REM cl /A%1 /c /Ox /FPi /Id:\msc5\include cpu
  45. rem                          ^-- unREM this if you're MSC user
  46.  
  47. tlink /x /Li:\borlandc\lib c0%1 cpu, cpuc,,c%1.lib math%1.lib emu.lib cputype%1.lib
  48. REM tlink /x /Ld:\turboc\lib c0%1 cpu, cpuc,,c%1.lib math%1.lib emu.lib cputype%1.lib
  49. rem                          ^-- unREM this if you're TC user
  50. REM tlink /x /Ld:\msc5\lib cpu, cpuc,,%1libce.lib cputype%1.lib
  51. rem                          ^-- unREM this if you're MSC user
  52. :P5Info
  53. echo:
  54. yesno Do you want to compile P5Info program
  55. if errorlevel 1 goto mkP5
  56. goto Done
  57. :mkP5
  58. if "%1" == "t" goto Tiny
  59. echo Building P5Info/C...
  60. tasm /t/m/d%model% p5info, p5c
  61. bcc -m%1 -c -Ii:\borlandc\include p5info.c
  62. REM tcc -m%1 -c -Id:\turboc\include p5info
  63. rem                          ^-- unREM this if you're TC user
  64. REM cl /A%1 /c /Ox /FPi /Id:\msc5\include p5info
  65. rem                          ^-- unREM this if you're MSC user
  66. tlink /x/Li:\borlandc\lib c0%1 p5info p5c,p5info,,c%1.lib
  67. REM tlink /x/Ld:\turboc\lib c0%1 p5info p5c,p5info,,c%1.lib
  68. rem                          ^-- unREM this if you're TC user
  69. REM tlink /x/Ld:\msc5\lib p5info p5c,p5info,,%1libce.lib
  70. rem                          ^-- unREM this if you're MSC user
  71. :Done
  72. if exist *.obj del *.obj >nul
  73. echo makeC done.
  74. set makeC=
  75. goto Quit
  76. :help
  77. echo:
  78. echo usage: makeC Model
  79. echo:
  80. echo   where Model can be one of these: s, c, m, l, h
  81. :Quit
  82. set model=